package cn.jiahua.hospital.service;

import cn.jiahua.hospital.pojo.Departments;

import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.jiahua.hospital.dto.Page;
import cn.jiahua.hospital.pojo.HdidRelation;
import cn.jiahua.hospital.pojo.Tdepartments;
import org.apache.ibatis.annotations.Param;

/**
 * Created by shang-pc on 2015/11/7.
 */
public interface DepartmentsService {


    public Departments getDepartmentsById(Integer id);

    public List<Departments> getDepartmentsListByMap(Map<String, Object> param);

    public Integer getDepartmentsCountByMap(Map<String, Object> param);

    public Integer qdtxAddDepartments(Departments departments);

    public Integer qdtxModifyDepartments(Departments departments);

    public Integer qdtxDeleteDepartmentsById(Integer id);

    public Integer qdtxBatchDeleteDepartments(String ids);

    public Page<Departments> queryDepartmentsPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize);

    public List<Tdepartments> getDepartments();


    public List<Departments> getDepartments1(Integer hospitalId);

    //分页模糊查询
    public List<Departments> departmentsSelectPage(@Param(value = "departmentsName") String departmentsName,
                                                   @Param(value = "pageNo") Integer pageNo,
                                                   @Param(value = "pageSize") Integer pageSize);

    //查询总数
    public int departmentSelectCount(@Param(value = "departmentsName") String departmentsName);

    public List<Departments> selectAll(@Param("hospitalId")String hospitalId);


}
